package io.github.talelin.latticy.repository;

import io.github.talelin.latticy.entity.Setting;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface SettingRepository extends JpaRepository<Setting, Long> {

    @Query("select s.val from Setting s where s.name = :key")
    Boolean findAuditVal(String key);

    Setting findByName(String name);

}
